using UnityEngine;
using System.Collections;

public class MText : MControl
{
    public float size = 1;
    public Color color = Color.white;

    protected TextMesh TM;

    // Use this for initialization
    public void Start()
    {
        //  크기 설정
        float _size = size;
        gameObject.transform.localScale = new Vector3(_size, _size, _size);

        //  좌표 설정
        gameObject.transform.position = new Vector3(sx + x, sy - y, -depth);

        TM = (TextMesh)gameObject.GetComponent(typeof(TextMesh));
        gameObject.renderer.material.color = new Color(color.r, color.g, color.b);
    }
	
	public string Text
	{
		get { return this.TM.text; }
		set { this.TM.text = value; }
	}
}
